// src/components/todo-item.vue

<template>
    <li>
      {{ title }}
      <button @click="$emit('remove')">Remove</button>
    </li>
</template>

<script lang="ts">
import { defineComponent } from "vue"

export default  defineComponent({
    name: 'TodoItem',
    props: ['title'],
    emits: ['remove']
})
</script>